<?php 
    ob_start();
    session_start();
    //require_once "admin/Model/Article.php";
    require_once "admin/lib/class.kieudang.php";
    require_once "admin/lib/class.loaisp.php";
    require_once "admin/lib/class.sanpham.php";
    require_once "admin/lib/class.loaitin.php";
    require_once "admin/lib/class.tintuc.php";
    //$modelArticle = new Article;
    $modelKieu = new kieudang;
    $modelLoaisp = new Loaisp;
    $modelSanPham = new sanpham;
    $modelTin = new tintuc;
    $modelLoaitin = new loaitin;
    require_once "admin/lib/class.trangchu.php";
    require_once("blocks/seo.php");
    $tc = new trangchu;

?>
<!DOCTYPE html>
<!-- saved from url=(0060)http://themetorium.net/demo/zipp/index.php?route=common/home -->
<html dir="ltr" lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<title><?php echo $title; ?></title>  
<meta name="description" content="<?php echo $metaD ;?>" />
<meta name="keywords" content="<?php echo $metaK ;?>" />
<!--<base href="http://pnfashionshop.com/" /> -->
<base href="http://localhost:8080/shop-thoitrang/" /> 
<meta name="description" content="<?php echo $title; ?>">
<link href="logo.ico" rel="shortcut icon" type="image/x-icon" />  
<script type="text/javascript" src="static/jquery.min.js"></script>



<!-- Begin Google fonts (Oswald & Open Sans) -->
<link href="static/css" rel="stylesheet" type="text/css">
<link href="static/css(1)" rel="stylesheet" type="text/css">
<!-- End Google fonts (Oswald & Open Sans) -->

<link rel="stylesheet" type="text/css" href="static/stylesheet.css">
<link rel="stylesheet" media="all" href="http://themetorium.net/demo/zipp/catalog/view/theme/zipp/stylesheet/mobile.css">
<link rel="stylesheet" type="text/css" href="static/cloud-zoom.css">
<link rel="stylesheet" type="text/css" href="static/jquery.qtip.css">
<link rel="stylesheet" type="text/css" href="static/flexslideshow.css" media="screen">
<link rel="stylesheet" type="text/css" href="static/slidingbox.css">

<link rel="stylesheet" type="text/css" href="static/blog_manager_custom.css"> <!-- ATTENTION! Blog Manager extension is NOT included in the theme download pack! If you want to use it, you must purchase the extension here: http://www.echothemes.com -->
<style type="text/css" media="screen">
	//@font-face {
   		// font-family: "Oswald";
   	 	//src: url(font/Oswald-Stencil.otf);
	//}

</style>
<script type="text/javascript" src="static/custom.js"></script>
<script type="text/JavaScript" src="static/cloud-zoom.1.0.2.js"></script>
<script type="text/JavaScript" src="static/slidingbox.js"></script>


<link rel="stylesheet" type="text/css" href="css/jquery.fancybox.css" media="screen" />
<link rel="stylesheet" type="text/css" href="static/fcarousel.css" media="screen">
<link rel="stylesheet" type="text/css" href="static/merkent_carousel_tab.css" media="screen">
<link rel="stylesheet" type="text/css" href="static/blog_module.css" media="screen">
<link rel="stylesheet" type="text/css" href="static/carousel.css" media="screen">
<script type="text/javascript" src="static/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="static/jquery-ui-1.8.16.custom.min.js"></script>
<link rel="stylesheet" type="text/css" href="static/jquery-ui-1.8.16.custom.css">
<script type="text/javascript" src="static/common.js"></script>
<script type="text/javascript" src="static/jquery.jcarousel.min.js"></script>
<script type="text/javascript" src="static/jquery.cycle.js"></script>
<script type="text/javascript" src="static/tabs.js"></script>


<style type="text/css">
        .fancybox-custom .fancybox-skin {
                box-shadow: 0 0 50px #222;
        }		
</style>
<script type=’text/javascript’>
//<![CDATA[ facebook
var purl= location.href;
var fb_href = purl.substring(0,purl.indexOf(".html")+5);
var fbcm ='<div class="fb-comments" data-href="'+fb_href+'" data-num-posts="5" data-width="660"></div>';
//]]>
</script>
</head>

<body data-twttr-rendered="true"  data-control="StepCheckout" >
    
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/vi_VN/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<!-- Begin header -->
    <?php include 'blocks/header.php'; ?>
<!-- End header -->

<!-- Begin Full Width Slider (Flexslider) -->
    <?php
                        
                                                   
                               
                if($com == ''){
                    include "blocks/slideshow.php";               
                }  
        
    ?>
    
<!-- End Full Width Slider (Flexslider) -->

<!-- Begin container -->
    <?php
                        
        switch($com){
                
                case "contact" : include "page/danh-muc.php";break;
                case "cat" : include "page/danh-muc.php";break; 
                case "cart" : include "blocks/cart.php";break; 
                case "checkout" : include "blocks/check-out.php";break; 
                case "thanhcong" : include "blocks/thanh-cong.php";break; 
                case "detail_sp" : include "page/chi-tiet-sp.php";break; 
                case "dn" : include "page/login.php";break;
                case "dk" : include "page/dang-ky.php";break;
                case "qmk" : include "page/quen-mat-khau.php";break;
                case "dm_news" : include "page/danh-muc-tin.php";break;
                case "detail_news" : include "page/chi-tiet-tin.php";break;
                case "about-us" : include "page/about-us.php";break;                
                default : include "blocks/content-home.php";break;
                 
        }
    ?>
   
<!-- End container wrapper //-->
    
<!-- Begin footer area //-->
<div id="footer-top-image"></div>
    <?php include 'blocks/footer.php'; ?>
<!-- End footer area //-->

<!-- Begin scroll to top button //-->
<a id="scroll-to-top" style="display: inline;"></a>
<!-- End scroll to top button //-->



<!-- Begin tooltip jquery //-->
<script type="text/javascript" src="static/jquery.qtip.js"></script>
<script type="text/javascript" src="static/tooltip.js"></script>
<!-- End tooltip jquery //-->

<!-- Begin NivoSlider jquery //-->
<script type="text/JavaScript" src="static/jquery.nivo.slider.pack.js"></script>
<!-- End NivoSlider jquery //-->

<!-- Begin zipp Slideshow (Flexslider) -->
<script type="text/javascript" src="static/jquery.flexslider-min.js"></script>
<!-- End zipp Slideshow (Flexslider) -->
<script type="text/javascript" src="js/jquery.fancybox.js"></script>
<script type="text/javascript">
		$(document).ready(function() {  
                        //alert('a');
			$('.fancybox').fancybox();

		});
</script>
<div id="qtip-rcontainer"></div>

</body></html>